//
//  HMUserAccount.h
//  HMWeiBoOC
//
//  Created by GD on 16/9/22.
//  Copyright © 2016年 geduo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface HMUserAccount : NSObject
    
//var access_token: String?
//var expires_in: TimeInterval = 0
//var expiresDate: Date?
//var uid: Int64 = 0
//var name: String?
//var profile_image_url: String?
    
@property (copy,nonatomic) NSString *access_token;
    
@property (assign,nonatomic) int expires_in;
    
@property (assign,nonatomic) NSInteger uid;  //NSInteger
    
@property (nonatomic,strong) NSDate *expiresDate;
    
@property (copy,nonatomic) NSString *name;
    
@property (copy,nonatomic) NSString *profile_image_url;
    
-(instancetype)initWithDict:(NSDictionary *)dict;
+(instancetype)userAccountWithDict:(NSDictionary *)dict;
    
-(void)saveUserAccount;
    +(instancetype)loadUserAccount;
@end
